import request from '@/utils/request.js'


// 获取列表数据
export const getSeekList = (params) => {
    return request({
        url: '/expenses/index',
        method: 'get',
        params
    })
}

// 删除列表数据
export const delSeekList = (id) => {
    return request({
        url: '/expenses/index/' + id,
        method: 'delete',
    })
}

// 添加列表数据
export const addSeekList = (data) => {
    return request({
        url: '/expenses/index',
        method: 'post',
        data
    })
}

// 获取详情
export const getSeekInfo = (id) => {
    return request({
        url: '/expenses/index/' + id,
        method: 'get',
    })
}

// 修改数据
export const editSeekList = (data) => {
    return request({
        url: '/expenses/index/' + data.id,
        method: 'put',
        data
    })
}